﻿using System.ComponentModel.DataAnnotations;

namespace JStore.Web.Controllers.CardTypes.ViewModels
{
    public class SaveCardTypeModel
    {
        /// <summary>
        /// 
        /// </summary>
        public int? Id { get; set; }

        /// <summary>
        /// 消费类型
        /// </summary>
        [Display(Name = "消费类型")]
        public int CardClass { get; set; }

        /// <summary>
        /// 消费名称
        /// </summary>
        [Display(Name = "消费名称"), Required]
        public string CardName { get; set; }

        /// <summary>
        /// 消费金额
        /// </summary>
        [Display(Name = "消费金额"), Required]
        public decimal Price { get; set; }

        /// <summary>
        /// 结算比率
        /// </summary>
        [Display(Name = "结算比率"), Required]
        public decimal BalanceRate { get; set; }

        /// <summary>
        /// 购物折扣
        /// </summary>
        [Display(Name = "购物折扣"), Required]
        public string SaleRate { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "所属会员类型"), Required]
        public int UserTypeId { get; set; }
    }
}